<?php namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\ProjectNews
 *
 * @property integer $id
 * @property integer $project_id
 * @property string $news_title
 * @property integer $img_logo_id
 * @property string $news_intro
 * @property string $news_comment
 * @property string $news_time
 * @property string $news_tags
 * @property string $deleted_at
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 * @property-read \App\Project $toProject
 * @method static \Illuminate\Database\Query\Builder|\App\ProjectNews whereId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\ProjectNews whereProjectId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\ProjectNews whereNewsTitle($value)
 * @method static \Illuminate\Database\Query\Builder|\App\ProjectNews whereImgLogoId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\ProjectNews whereNewsIntro($value)
 * @method static \Illuminate\Database\Query\Builder|\App\ProjectNews whereNewsComment($value)
 * @method static \Illuminate\Database\Query\Builder|\App\ProjectNews whereNewsTime($value)
 * @method static \Illuminate\Database\Query\Builder|\App\ProjectNews whereNewsTags($value)
 * @method static \Illuminate\Database\Query\Builder|\App\ProjectNews whereDeletedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\ProjectNews whereCreatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\ProjectNews whereUpdatedAt($value)
 */
class ProjectNews extends Model {

	//表名
    protected $table = 'project_news' ;
    use SoftDeletes;

    /** 关联项目表 */
    public function toProject()
    {
        return $this->belongsTo('App\Project' , 'project_id') ;
    }

}
